<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Mascaras</title>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/resources/antigo/css/style.css" />
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/resources/antigo/css/atributos.css" />
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/resources/antigo/css/botoes.css" />
<link rel="stylesheet" href="${pageContext.request.contextPath}/resources/antigo/css/bootstrap.min.css">
<link rel="stylesheet" href="${pageContext.request.contextPath}/resources/antigo/css/bootstrap-theme.min.css">
<script src="${pageContext.request.contextPath}/resources/antigo/js/jquery.min.js"></script>
<script src="${pageContext.request.contextPath}/resources/antigo/js/bootstrap.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/resources/antigo/js/sispfuncoes.js"></script>
</head>
<body onunload="">
	<form id="form" action="../test/sessao" method="get">
		<jsp:include page="/resources/antigo/include/header.jsp" />
		<div id="conteudo">
			<div class="content">
				<input type="submit" value="logout" class="btn btn-primary btn-sm" onclick="return acao('../autenticacao/logout')">
				<center>
					<table>
						<tr>
							<td>
								<h2>
									TESTE MASCARA
									<br>
									<br>
									${mensagem}
									<br>
									${user}
									<br>
									User S.O:${sessao.user}
									<br>
									Usuario logado:${sessao.ativa}
								</h2>
								<br>
								<br>
								Mascara de CPF:
								<input type="text" name="data" OnKeyPress="return mascara(event, this, '999.999.999-99');" />
								<br>
								<br>
								Mascara de CNPJ:
								<input type="text" name="data" OnKeyPress="return mascara(event, this, '99.999.999/9999-99');" />
								<br>
								<br>
								Mascara de Hora:
								<input type="text" name="data" OnKeyPress="return mascara(event, this, '99:99:99');" />
								<br>
								<br>
								Mascara de Telefone:
								<input type="text" name="data" OnKeyPress="return mascara(event, this, '+99 99 9999-9999');" />
								<br>
								<br>
								Mascara de Celular:
								<input type="text" name="data" OnKeyPress="return mascara(event, this, '+99 99 99999-9999');" />
								<br>
								<br>
								Data:
								<input type="text" name="data" OnKeyPress="return mascara(event, this, '99/99/9999');" />
								<br>
								<br>
								Moeda:
								<input type="text" name="moeda2" onKeyPress="return(mascaraDecimal(this,'.',',',event))" />
								<br>
								<br>
								Letras em maiusculo:
								<input type="text" name="letras" onkeyup="maiuscula(this)" />
								<br>
								<br>
								Numeros:
								<input type="text" name="letras" onkeyup="num(this);" />
								<br>
								<br>
								<br>
								<br>
							</td>
						</tr>
					</table>
				</center>
			</div>
		</div>
		<jsp:include page="/resources/antigo/include/footer.jsp" />
	</form>
	<script type="text/javascript">
		function acao(navegar) {

			document.getElementById('form').action = navegar;

			return true;
		}
	</script>
</body>
</html>
